﻿using System;

namespace Ndns.ServerHost.Abstractions
{
    public interface IFeatureBuilder
    {
        IFeatureBuilder Add(Type featureType, object featureObject);
    }

    public static class FeatureBuilderExtensions
    {
        public static IFeatureBuilder Add<TFeature>(this IFeatureBuilder builder, TFeature featureObject)
        {
            return builder.Add(typeof(TFeature), featureObject);
        }
    }
}
